﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace CuteRibs.WowArmory.Models
{
	[JsonObject]
	public class MyData
	{
		[JsonProperty("regions")]
		public List<RegionData> Regions { get; set; }

		public MyData()
		{
			this.Regions = new List<RegionData>();
		}
	}

	public class RegionData
	{
		[JsonProperty("region")]
		[JsonConverter(typeof(RegionConverter))]
		public Region Region { get; set; }
		
		[JsonProperty("realms")]
		public List<Realm> Realms { get; set; }

		[JsonProperty("characters")]
		public List<Character> Characters { get; set; }

		[JsonProperty("guilds")]
		public List<Guild> Guilds { get; set; }

		[JsonProperty("items")]
		public List<Item> Items { get; set; }

		[JsonProperty("arenaTeams")]
		public List<ArenaTeam> ArenaTeams { get; set; }

		public RegionData (Region region = null)
		{
			this.Region = region;
			this.Realms = new List<Realm>();
			this.Characters = new List<Character>();
			this.Guilds = new List<Guild>();
			this.Items = new List<Item>();
			this.ArenaTeams = new List<ArenaTeam>();
		}
	}
}
